package tech.aistar.service.newService.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import tech.aistar.mapper.news.NewsVoMapper;
import tech.aistar.service.newService.INewsVoService;
import tech.aistar.vo.NewsVo;

import java.util.List;

/**
 * Created by Administrator on 2019/10/15 0015.
 */
@Service
@Transactional
public class NewsVoService implements INewsVoService {
    @Autowired
    private NewsVoMapper newsVoMapper;
    @Override
    public List<NewsVo> newsvoFindAll() {
        List<NewsVo> newsVos = newsVoMapper.newsvoFindAll();
        return newsVos;
    }

    @Override
    public List<NewsVo> newvoFindOne(Integer userinfoId) {
        List<NewsVo> newsVos = newsVoMapper.newvoFindOne(userinfoId);
        return newsVos;
    }
}
